package com.bamboo.tool.util;

import cn.hutool.core.text.CharSequenceUtil;
import org.jetbrains.annotations.NotNull;

public class RequestUtil {

    @NotNull
    public static String getUrl(String serverUrl, String methodUrl) {
        String url = serverUrl;
        String loginUrl = "";
        boolean b = CharSequenceUtil.endWith(url, "/");
        if (b) {
            loginUrl = serverUrl + methodUrl;
        } else {
            loginUrl = serverUrl + "/" + methodUrl;
        }
        return loginUrl;
    }
}
